home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / hearts.swf / scripts / DefineSprite_638 / frame_1 / DoAction_11.as < prev    next >
Encoding:
Text File  |  2011-12-21  |  504 b   |  27 lines

  1. this.chainBonus = function(x, y, val, typ)
  2. {
  3.    var t = this;
  4.    t.attachMovie("chain","c" + t.td,t.td);
  5.    var n = t["c" + t.td];
  6.    n._x = x;
  7.    n._y = y;
  8.    n.txtMC.gotoAndStop(typ);
  9.    if(n._x > t.stageW - n._width / 2)
  10.    {
  11.       n._x = t.stageW - n._width / 2;
  12.    }
  13.    if(typ == "mul")
  14.    {
  15.       n.txtMC.txt = val;
  16.       if(t.soundPlay == "true")
  17.       {
  18.          t.orb.start();
  19.       }
  20.    }
  21.    else if(typ == "add")
  22.    {
  23.       n.txtMC.txt = val;
  24.    }
  25.    t.addD("t");
  26. };
  27.